﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SiGeSIB.Data.Management
{
	public class Contributor
	{
		public Contributor()
		{ }

		#region Properties
		public int Id { get; set; }
		public string Name { get; set; }
		public EDocumentType? DocumentType { get; set; }
		public string DocumentNumber { get; set; }
		public Address Address { get; set; }
		public string Phone
		{
			get;
			set;
		}
		public string CellPhone
		{
			get;
			set;
		}
		public virtual EContributorType Type { get { return EContributorType.Contributor; } }
		#endregion

		#region Methods
		public static Contributor Create(EContributorType type)
		{
			Contributor cont = null;
			switch (type)
			{
				case EContributorType.Member:
					cont = new Member();
					break;
				case EContributorType.Visitor:
					cont = new Visitor();
					break;
				case EContributorType.Contributor:
					cont = new Contributor();
					break;
				case EContributorType.Away:
					cont = new Member();
					break;
				default:
					break;
			}
			 return cont;
		}
		#endregion
	}
}
